package dkbta.util.data;

public class StatInfo {
	
	private String name;
	private String patients;
	private String sendToDB;
	private String abstractedFromName;
	private boolean isPrimitiveAbstr;
	private char apostr = '"';
	private int unitID;
	
	public StatInfo(String name, String patients, String sendToDB, String abstractedFromName, boolean isPrimitiveAbstr) {
		super();
		this.name = name;
		this.patients = patients;
		this.sendToDB = sendToDB;
		this.abstractedFromName = abstractedFromName;
		this.isPrimitiveAbstr = isPrimitiveAbstr;
		this.unitID = -1;
	}

	public String getName() {
		return name;
	}

	public String getAbstractedFromName() {
		return abstractedFromName;
	}

	public boolean isPrimitiveAbstr() {
		return isPrimitiveAbstr;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setAbstractedFromName(String abstractedFromName) {
		this.abstractedFromName = abstractedFromName;
	}

	public void setPrimitiveAbstr(boolean isPrimitiveAbstr) {
		this.isPrimitiveAbstr = isPrimitiveAbstr;
	}

	public String getPatients() {
		return patients;
	}

	public String getSendToDB() {
		return sendToDB;
	}

	public void setPatients(String patients) {
		this.patients = patients;
	}

	public void setSendToDB(String sendToDB) {
		this.sendToDB = sendToDB;
	}
	
	public int getUnitID() {
		return unitID;
	}

	public void setUnitID(int unitID) {
		this.unitID = unitID;
	}

	@Override
	public String toString() {
		return "\t\t<Stat name=" + apostr + name + apostr + " patients=" + apostr + patients
				+ apostr + " sendToDB="+ apostr + sendToDB + apostr + " />";
	}

	
	
	

}
